package priv.xml;

import java.text.DateFormat;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

public class Cat {
	private String type;
	private Double price;
	
	private Date date;
	
	@Autowired
	private DateFormat dFormat;
	public Cat() {
		
	}
	public Cat(String type, Double price) {
		this.type = type;
		this.price = price;
	}
	
	
	
	public DateFormat getdFormat() {
		return dFormat;
	}
	public void setdFormat(DateFormat dFormat) {
		this.dFormat = dFormat;
	}
	@Override
	public String toString() {
		return "Cat [type=" + type + ", price=" + price + ", date=" + date + ", dFormat=" + dFormat + "]";
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	
	
}
